﻿using System;
using System.Xml.Serialization;

namespace WebApplication1.classes.Core {
    [Serializable]
    [XmlType(AnonymousType = true, Namespace =
        "http://tempuri.org/xDS.xsd")]
    public class Entity {
        private readonly Guid _id;
        private String _name;

        public Entity() {
            _id = Guid.NewGuid();
            _name = "";
        }

        [XmlElement]
        public Guid id {
            get { return _id; }
        }

        [XmlElement]
        public String name {
            get { return _name; }
            set { _name = value; }
        }
    }
}